GDK W32: fix direction of horizontal smooth scrolling events
authorEduard Braun <eduard.braun2@gmx.de>
Thu, 13 Sep 2018 14:17:51 +0000 (16:17 +0200)
committerРуслан Ижбулатов <lrn1986@gmail.com>
Tue, 18 Sep 2018 13:52:36 +0000 (13:52 +0000)
commit73728814b00a1c4342d1053cc1c697831eff4364
tree7e69984075fb30211ed5f1dbcde580cd99b6d769
parentd4098099ddeb1016faebc0846e59237ab9254a82
GDK W32: fix direction of horizontal smooth scrolling events

Commit 359df028be7b1dae76a1abb9bad8a3b86a648765 changed the
code to send GDK_SCROLL_SMOOTH with deltas instead of
GDK_SCROLL_(UP|DOWN|LEFT|RIGHT).

Windows defines deltas inversed for vertical direction
(positive values mean the wheel was turned forward)
but not for horizontal direction
(positive values mean the wheel was turned towards the right).

This commit fixes behavior as both axes were inverted previously.
gdk/win32/gdkevents-win32.c